﻿@{
    Layout = null;
}
<script type="text/javascript">
    function fnKeyUp() {
        this.value = this.value.toUpperCase();
    }
    $.extend($.fn.validatebox.defaults.rules, {
        Phone: {
            validator: function (value) {
                var rex = /^1[3-8]+\d{9}$/;
                var rex2 = /^((0\d{2,3})-)(\d{7})$/;
                if (rex.test(value) || rex2.test(value)) { 
                    return true;
                } else {
                    return false;
                }

            },
            message: '请输入正确电话或手机格式'
        }
    });
</script>
<form id="addCustomerForm" method="post">
<table class="grid" width="100%" cellspacing="0" cellpadding="0">
	<!--基本信息-->
	<tbody>
	<tr>
		<td>企业名称</td>
		<td>
            <input type="hidden" id="ID" name="ID" value="" />
		    <input type="text" id="TheName" name="TheName" class="easyui-textbox" data-options="required:true">
		</td>
        <td>法人姓名</td>
		<td>
			<input type="text" id="LegalPerson" class="easyui-textbox" name="LegalPerson" >
		</td>
        <td>法人联系电话</td>
		<td>
			<input type="text" id="LPPhone" class="easyui-textbox" name="LPPhone" data-options="validType:'Phone',prompt:'0533-*******'">
		</td>
    </tr>
    <tr>
        <td>注册资金</td>
		<td>
			<input type="text" id="RegisteredCapital" class="easyui-numberbox" data-options="min:0,precision:2" name="RegisteredCapital">
		</td>
        <td>企业利润</td>
		<td>
			<input type="text" id="Profit" class="easyui-numberbox" data-options="min:0,precision:2" name="Profit">
		</td>
        <td>年收入额</td>
		<td>
			<input type="text" id="AnnualIncome" class="easyui-numberbox" data-options="min:0,precision:2" name="AnnualIncome">
		</td>
    </tr>
    <tr>
        <td>成立日期</td>
        <td>
            <input id="FoundDate" name="FoundDate" type="text" class="easyui-datebox" />
        </td>
        <td>纳税人识别号</td>
        <td><input id="TaxNumber" name="TaxNumber" type="text" class="easyui-textbox" data-options="events:{keyup:fnKeyUp}" /></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td>联系电话</td>
		<td>
			<input type="text" id="Phone" class="easyui-textbox" name="Phone" data-options="validType:'Phone',prompt:'0533-*******'" />
		</td>
		<td>联系人</td>
		<td>
		    <input type="text" id="Contact" name="Contact" class="easyui-textbox"/>
	    </td>
        <td></td>
        <td></td>
    </tr>
    <tr>
		<td>地址</td>
		<td colspan="5"><input id="Addr" name="Addr" class="easyui-textbox" style="width:300px"></td>
	</tr>
</tbody>
</table>
</form>
